<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>提现配置</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid">
    <div class="layui-form" id="LAY-config-submit" wid100>
        <div class="layui-card">
            <div class="layui-card-header">组信息</div>
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">组ID</label>
                            <input type="hidden" name="id" value="$!{id}"/>
                            <div class="layui-form-mid layui-word-aux">$!{id}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">账号组名称</label>
                            <div class="layui-input-block">
                                <input type="text" name="name" placeholder="请输入账号组名称" autocomplete="off" class="layui-input" value="$!{name}">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-card">
            <div class="layui-card-header">代理提现配置</div>
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">开启提现</label>
                            <div class="layui-input-block">
                                <input type="checkbox" name="canTransfer" lay-skin="switch" lay-text="开启|关闭" value="true" $!{utils.eq($canTransfer,true,'checked')}>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">每天总提现金额</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="dayTotalMoneyStr" value="$!{dayTotalMoneyStr}">
                            </div>
                            <div class="layui-form-mid layui-word-aux">元</div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">提现手续费</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="config.serviceCharge"
                                       value="$!{config.serviceCharge}">
                            </div>
                            <div class="layui-form-mid layui-word-aux">%</div>
                        </div>
                    </div>
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label" style="width: 120px">每天每人最多</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="config.dayUserMaxMoneyStr" value="$!{config.dayUserMaxMoneyStr}">
                            </div>
                            <div class="layui-form-mid layui-word-aux">元</div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm7">
                        <div class="layui-form-item">
                            <label class="layui-form-label">提现金额范围</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="config.minMoneyStr" value="$!{config.minMoneyStr}"/>
                            </div>
                            <div class="layui-form-mid layui-word-aux">一</div>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="config.maxMoneyStr" value="$!{config.maxMoneyStr}"/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-sm5">
                        <div class="layui-form-item">
                            <label class="layui-form-label">自动转账金额</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="config.autoMaxMoneyStr" value="$!{config.autoMaxMoneyStr}"/>
                            </div>
                            <div class="layui-form-mid layui-word-aux">元</div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">开启微信号转账</label>
                            <div class="layui-input-block">
                                <input type="checkbox" name="wxTransfer" lay-text="开启|关闭" value="true" lay-skin="switch" ${utils.eq($wxTransfer,true,'checked')}>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">微信转账应用ID</label>
                            <div class="layui-input-block">
                                <input type="text" name="wxTransferAppId" autocomplete="off" class="layui-input" value="$!{wxTransferAppId}">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">小程序跳转类型</label>
                            <div class="layui-input-block">
                                <select name="appletsJumpType">
                                    #foreach($item in $appletsJumpTypeList)
                                    <option value="$!{item.index()}">$!{item.note()}</option>
                                    #end
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">小程序跳转路径</label>
                            <div class="layui-input-block">
                                <input type="text" name="appletsPath" autocomplete="off" class="layui-input" value="$!{appletsPath}">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm8">
                        <div class="layui-form-item">
                            <label class="layui-form-label">提现周设置</label>
                            <div class="layui-input-block">
                                <div id="cashWithdrawalWeeks"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm8">
                        <div class="layui-form-item">
                            <label class="layui-form-label">提现月设置</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="config.monthStartDay"
                                       value="$!{config.monthStartDay}" placeholder="每月第几天开始"/>
                            </div>
                            <div class="layui-form-mid layui-word-aux">一</div>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="config.monthEndDay" value="$!{config.monthEndDay}"
                                       placeholder="每月第几天结束"/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">提现时间</label>
                            <div class="layui-input-block">
                                <input type="text" name="config.cashWithdrawalTimes" id="config.cashWithdrawalTimes"
                                       autocomplete="off" class="layui-input"
                                       placeholder="时-分-秒" value="$!{config.cashWithdrawalTimes}">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-card" style="margin-top:15px;">
            <div class="layui-card-header">会员提现配置</div>
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">开启提现</label>
                            <div class="layui-input-block">
                                <input type="checkbox" name="memberCanTransfer" lay-skin="switch" lay-text="开启|关闭" value="true" $!{utils.eq($memberCanTransfer,true,'checked')}>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">每天总提现金额</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="memberDayTotalMoneyStr" value="$!{memberDayTotalMoneyStr}">
                            </div>
                            <div class="layui-form-mid layui-word-aux">元</div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">提现手续费</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="memberConfig.serviceCharge" value="$!{memberConfig.serviceCharge}">
                            </div>
                            <div class="layui-form-mid layui-word-aux">%</div>
                        </div>
                    </div>
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">每天每人最多</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="memberConfig.dayUserMaxMoneyStr" value="$!{memberConfig.dayUserMaxMoneyStr}">
                            </div>
                            <div class="layui-form-mid layui-word-aux">元</div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm7">
                        <div class="layui-form-item">
                            <label class="layui-form-label">提现金额范围</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="memberConfig.minMoneyStr" value="$!{memberConfig.minMoneyStr}"/>
                            </div>
                            <div class="layui-form-mid layui-word-aux">一</div>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="memberConfig.maxMoneyStr" value="$!{memberConfig.maxMoneyStr}"/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-sm5">
                        <div class="layui-form-item">
                            <label class="layui-form-label">自动转账金额</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="memberConfig.autoMaxMoneyStr" value="$!{memberConfig.autoMaxMoneyStr}"/>
                            </div>
                            <div class="layui-form-mid layui-word-aux">元</div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm8">
                        <div class="layui-form-item">
                            <label class="layui-form-label">提现周设置</label>
                            <div class="layui-input-block">
                                <div id="memberCashWithdrawalWeeks"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm7">
                        <div class="layui-form-item">
                            <label class="layui-form-label">提现月设置</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="memberConfig.monthStartDay"
                                       value="$!{memberConfig.monthStartDay}" placeholder="每月第几天开始"/>
                            </div>
                            <div class="layui-form-mid layui-word-aux">一</div>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="memberConfig.monthEndDay" value="$!{memberConfig.monthEndDay}"
                                       placeholder="每月第几天结束"/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">提现时间</label>
                            <div class="layui-input-block">
                                <input type="text" name="memberConfig.cashWithdrawalTimes" id="memberCashWithdrawalTimes"
                                       autocomplete="off" class="layui-input"
                                       placeholder="时-分-秒" value="$!{memberConfig.cashWithdrawalTimes}">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="确认">
        </div>
    </div><!-- /.layui-form -->
</div><!-- /.layui-fluid -->
#parse('/footFiles.html')
<script type="text/javascript">
layui.config({
    base: '$!{webRoot}/layuiadmin/'
}).extend({
    index: 'lib/index'
}).use(['jquery', 'index', 'form', 'laydate', 'selectM'], function () {
    var $ = layui.jquery, form = layui.form, selectM = layui.selectM, laydate = layui.laydate;

    laydate.render({
        elem: '#cashWithdrawalTimes'
        , type: 'time'
        , range: true
        , trigger: 'click'
    });

    laydate.render({
        elem: '#memberCashWithdrawalTimes'
        , type: 'time'
        , range: true
        , trigger: 'click'
    });

    selectM({
        elem: '#cashWithdrawalWeeks'
        , data: '$!{webRoot}/config/cash_withdrawal/weeks.data'
        , field: {idName: 'id', titleName: 'text', statusName: 'status'}
        , selected: '$!{config.cashWithdrawalWeeks}'
        , max: 7
    });

    selectM({
        elem: '#memberCashWithdrawalWeeks'
        , data: '$!{webRoot}/config/cash_withdrawal/weeks.data'
        , field: {idName: 'id', titleName: 'text', statusName: 'status'}
        , selected: '$!{memberConfig.cashWithdrawalWeeks}'
        , max: 7
    });
});
</script>
</body>
</html>